package game.module.battlereport.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import game.RoomServer;
import game.module.battlereport.bean.BattleReport;




public class BattleReportDBHelper {
private static Logger logger = LoggerFactory.getLogger(BattleReportDBHelper.class);
	
	static class SingletonHolder{
		static BattleReportDBHelper instance = new BattleReportDBHelper();
	}
	
	public static BattleReportDBHelper getInstance()
	{
		return SingletonHolder.instance;
	}
	
	public void asyncAddBattleReport(final BattleReport battlereport ) {
		RoomServer.executorService.execute(new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				BattleReportDBDao.getInstance().addBattleReport(battlereport);
			}
		});
	}
}
